#pragma once
#include "Global.h"
#include <vector>
using namespace std;

typedef vector<double*> vData;
typedef vector<double*>::iterator iData;
typedef vector<double> mulData;
typedef vector<double>::iterator inputDataPos;

class CChartMultiData
{
public:
	CChartMultiData();
	~CChartMultiData();
	int S;
	int E;
	long Date[MaxData];
	long Time[MaxData];
	double High[MaxData];
	double Low[MaxData];
	double Open[MaxData];
	double Close[MaxData];
	long Volume[MaxData];
		
	void AddData(mulData& a_NewData);
	void AddData(long a_Date, long a_Time, double a_High, double a_Low, double a_Open, double a_Close, long a_Volume);
	void AddData(long a_Date, long a_Time, double a_CurVal);
	void UpdateData(double a_CurVal);
	void UpdateLastData(mulData& a_NewData);
	void UpdateLastData(double a_High, double a_Low, double a_Close, long a_Volume);
	int Length() { return E; };
	mulData GetLastData();
	mulData GetFirstData();
	mulData GetData(int a_Index);
	double* GetDataArray(int a_Index);
};

